import { stringify } from 'qs';
import request from '@/utils/request';

export async function fetch({ goodsId, ...params }) {
  return request(`${API_PREFIX}/goods/${goodsId}/users?${stringify(params)}`);
}